package com.byedu.mapper.course;

import java.util.List;

import com.byedu.domain.course.AnswerDO;
import org.springframework.stereotype.Repository;

/**
 * Created by Luo on 2017-04-25.
 */
@Repository
public interface AnswerMapper {
	
	/**
     * 获取考题集对应的答案，即对应的选项集
     * @author chenxigui
     * @date 2017-04-26
     * @param questionId
     * @return
     */
    List<AnswerDO> listAnswersbyQuestionId(int questionId);
	
    /**
     * 获取考题集对应的答案，即对应的选项集
     * @author chenxigui
     * @date 2017-04-26
     * @param questionIds
     * @return
     */
     List<AnswerDO> listAnwsersByQuestionIds(List<Integer> questionIds);
    
    
    /**
     * 获取考题集对应的答案，即对应的选项集
     * @author luohongzhou
     * @date 2017-04-26
     * @param answer
     * @return
     */
     int insertAnswer(AnswerDO answer);

    int insertAnswerDOList(List<AnswerDO> answerDOList);
}
